package cn.yuanqiao.archive.collection.danganjieshou.mapper;


import cn.yuanqiao.archive.collection.danganjieshou.domain.YqGcReceiveFolder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 馆藏文件接收组卷Mapper接口
 *
 * @ProjectName: JZSDAS
 * @Package: cn.yuanqiao.collection.danganjieshou.mapper
 * @ClassName: YqGcReceiveFolderMapper
 * @Author: lenovo
 * @Description: hbWang
 * @Date: 2023/8/2 15:10
 * @Version: 1.0
 */
public interface YqGcReceiveFolderMapper {
    /**
     * 查询馆藏文件接收组卷
     *
     * @param id 馆藏文件接收组卷主键
     * @return 馆藏文件接收组卷
     */
    public YqGcReceiveFolder selectYqGcReceiveFolderById(@Param("id") String id, @Param("tableName") String tableName);


    /**
     * 跟据资料树id查询组卷信息
     *
     * @param treeId
     * @param tableName
     * @return
     */
    public List<YqGcReceiveFolder> selectYqGcReceiveFolderByTreeId(@Param("treeId") String treeId, @Param("tableName") String tableName);

    /**
     * 跟据资料类号查询组卷信息
     *
     * @param categoryNum 类号
     * @param tableName
     * @return
     */
    public List<YqGcReceiveFolder> selectCategoryNum(@Param("categoryNum") String categoryNum, @Param("tableName") String tableName);


    /**
     * 查询馆藏文件接收组卷列表
     *
     * @param data 馆藏文件接收组卷
     * @return 馆藏文件接收组卷集合
     */
    public List<YqGcReceiveFolder> selectYqGcReceiveFolderList(@Param("data") YqGcReceiveFolder data, @Param("tableName") String tableName);

    /**
     * 新增馆藏文件接收组卷
     *
     * @param data 馆藏文件接收组卷
     * @return 结果
     */
    public int insertYqGcReceiveFolder(@Param("data") YqGcReceiveFolder data, @Param("tableName") String tableName);

    /**
     * 修改馆藏文件接收组卷
     *
     * @param data 馆藏文件接收组卷
     * @return 结果
     */
    public int updateYqGcReceiveFolder(@Param("data") YqGcReceiveFolder data, @Param("tableName") String tableName);

    /**
     * 删除馆藏文件接收组卷
     *
     * @param id 馆藏文件接收组卷主键
     * @return 结果
     */
    public int deleteYqGcReceiveFolderById(@Param("id") String id, @Param("tableName") String tableName);

    /**
     * 批量删除馆藏文件接收组卷
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYqGcReceiveFolderByIds(@Param("ids") String[] ids, @Param("tableName") String tableName);
}
